Skip to content

Option to persist mails in sqlite database at path - #109

Open
toy wants to merge 3 commits into
sj26:mainfrom
toy:persist-mails
Open

Option to persist mails in sqlite database at path#109
toy wants to merge 3 commits into
sj26:mainfrom
toy:persist-mails

Conversation

@toy

@toy toy commented Aug 24, 2013

Copy link
Copy Markdown
Contributor

No description provided.

@sj26

sj26 commented Nov 18, 2013

Copy link
Copy Markdown
Owner

The idea was to make it transparent, so no options should be involved really. My delay on this feature was just researching a nice way to find a platform-dependent location for the database.

@sj26
sj26 force-pushed the master branch 2 times, most recently from aa7bc8e to 23398d7 Compare January 27, 2015 21:44
@fdrouet

fdrouet commented Oct 21, 2015

Copy link
Copy Markdown

Any chance to have this PR merged ? Why not providing a default sqlite storage path so that it remain transparent by default and allowing this parameter to override it ?

I need to launch several mailcatcher instances on the same server, so I really need to be able to have several sqlite persistance path.

@sj26

sj26 commented Oct 21, 2015

Copy link
Copy Markdown
Owner

I would prefer a --database=URL argument, using something like sequel, falling back to ENV.fetch("DATABASE_URL", "sqlite://:memory:"), and with graceful migrations. This would work but would create a new migration path for which I'm not keen.

@sj26

sj26 commented Oct 21, 2015

Copy link
Copy Markdown
Owner

@fdrouet you can already run multiple instances of mailcatcher using different ports, the content just won't survive restarts. :-)

@fdrouet

fdrouet commented Oct 21, 2015

Copy link
Copy Markdown

@sj26 yes you are right but it is not sufficient in my case as I would like to use mailcatcher on an acceptance testing platform with lots of email sent and I would like to avoid consuming all the server memory with mailcatcher processes

@sj26

sj26 commented Oct 21, 2015

Copy link
Copy Markdown
Owner

@fdrouet you might like to try https://github.com/mailhog/mailhog. It's written in go, has less dependencies and much less memory usage.

@fdrouet

fdrouet commented Oct 21, 2015

Copy link
Copy Markdown

Thanks for the hint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants